package com.asset.dispoal.defaultCompanyRole.service.converter;

import com.asset.dispoal.defaultCompanyRole.domain.db.entity.GbDefaultCompanyRole;
import com.asset.dispoal.defaultCompanyRole.dto.GbDefaultCompanyRoleRequest;
import com.asset.dispoal.defaultCompanyRole.dto.GbDefaultCompanyRoleResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author qr
 * @date 2022/3/17$
 */
@Mapper
public interface GbDefaultCompanyRoleConverter {

    GbDefaultCompanyRoleConverter INSTANCE = Mappers.getMapper(GbDefaultCompanyRoleConverter.class);


    GbDefaultCompanyRole reqToDo(GbDefaultCompanyRoleRequest request);

    List<GbDefaultCompanyRoleResponse> doToRes(List<GbDefaultCompanyRole> gbDefaultCompanyRoles);
}
